<%@ page contentType="application/xhtml+xml;charset=utf-8" pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%@ taglib prefix="stripes" uri="http://stripes.sourceforge.net/stripes.tld"%>

<stripes:form beanclass="cz.muni.fi.xvano1.trinity.beans.EditEventActionBean">
    <c:out value="Please verify the parameters supplied."/><br/>
    <table border="1">
        <thead>
            <tr>
                <th>
                    <c:out value="Quick description"/>
                </th>
                <th>
                    <c:out value="Start"/>
                </th>
                <th>
                    <c:out value="End"/>
                </th>
                <th>
                    <c:out value="Recurrence"/>
                </th>
                <th>
                    <c:out value="All-day event?"/>
                </th>
                <th>
                    <c:out value="Description"/>
                </th>
                <th>
                    <c:out value="Location"/>
                </th>
            </tr>
        </thead>
        <tbody>
            <tr>
                <td>
                    <c:out value="${summary}"/>
                </td>
                <td>
                    <c:out value="${start}"/>
                </td>
                <td>
                    <c:if test="${wholeDay}">
                        <c:out value="not applicable"/>
                    </c:if>
                    <c:if test="${not wholeDay}">
                        <c:out value="${end}"/>
                    </c:if>
                </td>
                <td>
                    <c:out value="${recurrence}"/>
                </td>
                <td>
                    <c:out value="${wholeDay}"/>
                </td>
                <td>
                    <c:out value="${description}"/>
                </td>
                <td>
                    <c:out value="${location}"/>
                </td>
            </tr>
        </tbody>
    </table>
    <stripes:hidden name="summary" value="${summary}"/>
    <stripes:hidden name="start" value="${start}"/>
    <stripes:hidden name="end" value="${end}"/>
    <stripes:hidden name="recurrence" value="${recurrence}"/>
    <stripes:hidden name="wholeDay" value="${wholeDay}"/>
    <!--<c:if test="${not empty wholeDay}">
        <stripes:hidden name="wholeDayStr" value=""/>
    </c:if>-->
    <stripes:hidden name="description" value="${description}"/>
    <stripes:hidden name="location" value="${location}"/>
    <stripes:hidden name="uid" value="${uid}"/>
    <stripes:submit name ="editEvent" value="Submit"/>
</stripes:form>